<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="提示类型">
                <el-select v-model="propJson.type" placeholder="提示类型" style="width: 100%">
                    <el-option label="成功提示" value="success" />
                    <el-option label="警告提示" value="warning" />
                    <el-option label="默认提示" value="info" />
                    <el-option label="错误提示" value="error" />
                </el-select>
            </el-form-item>

            <el-form-item label="是否支持关闭">
                <el-radio-group v-model="propJson.isClosable">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="文字是否居中">
                <el-radio-group v-model="propJson.isCenter">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="是否展示图标">
                <el-radio-group v-model="propJson.isShowIcon">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="主题颜色">
                <el-radio-group v-model="propJson.effect">
                    <el-radio label="dark">深色</el-radio>
                    <el-radio label="light">浅色</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-divider>标题内容</el-divider>

            <CommonThirdServiceValue :actionInfo="propJson.titleActionInfo ? propJson.titleActionInfo : {}" :commonParam="commonParam" />

            <el-divider>具体描述内容</el-divider>

            <CommonThirdServiceValue :actionInfo="propJson.descriptionActionInfo ? propJson.descriptionActionInfo : {}" :commonParam="commonParam" />
        </el-form>
    </div>
</template>

<script name="AlertMessageDrawer" setup lang="ts">
import CommonThirdServiceValue from "@/components/lowcode/service/CommonThirdServiceValue.vue"
import {computed, defineProps} from "vue";
import {useLowCodeStore} from "@/stores/lowcode/lowcode";

let props = defineProps(['commonParam']);

let commonParam = computed(() => {return props['commonParam']})

let propJson = computed(() => {return useLowCodeStore().lowCodeDrawerJsonInfo});

</script>

<style scoped lang="less">

</style>